#ifndef _LED_H_
#define _LED_H_

#include "platform.h"
#include "device.h"

typedef enum {
    LED_OFF,
    LED_ON,
    LED_BLINK
} LED_State;

typedef struct {
    void (*Init)(void);
    void (*Set)(LED_State state);
    LED_State (*Get)(void);
    void (*Toggle)(void);
    void (*Stop)(void);
} LEDModule;

// 声明 LEDModule 的实例
extern LEDModule led;

#endif /* _LED_H_ */